<template>
  <div class="locationchoose-container">
    <mt-header fixed :title="this.title">
      <span slot="left" @click="goBack">
        <mt-button icon="back"></mt-button>
      </span>
    </mt-header>
  </div>
</template>

<script>
//导入mui的js文件
import "../../../lib/mui/js/mui.min.js";

export default {
  methods: {
    goBack() {
      // 点击后退 一个页面
      if (this.title === "我的爱车") {
        this.$router.push("/home");
      } else {
        this.$router.go(-1);
      }
    }
  },
  props: ["title"]
};
</script>

<style lang="scss" scoped>
.mint-header {
  background-color: #a1171b;
  font-size: 16px;
  height: 45px;
  z-index: 999;
  position: relative;
  padding: 0 20px;
}
</style>